home *** CD-ROM | disk | FTP | other *** search
- Path: crl.crl.com!not-for-mail
- From: bobfry@crl.com (Robert Fry)
- Newsgroups: comp.lang.c
- Subject: Re: Question: Hardware key
- Date: 7 Mar 1996 09:49:18 -0800
- Organization: CRL Dialup Internet Access
- Message-ID: <4hn7iu$qgp@crl.crl.com>
- References: <4hlm6h$rok@usenetw1.news.prodigy.com>
- NNTP-Posting-Host: crl.com
-
- CJMQ00C@prodigy.com (George Zema) writes:
-
- >Is it possible to write a patch that would prevent a program on start up
- >from going out to look for a hardware key attached to LPT1? If so, what
- >would a person look for in the code? Can this be done via Debug? I'm
- >dealing with an older program, bought and paid for, that's long out of
- >circulation so there's no support available and it requires this stupid
- >hardware key. I'd get rid of the program if I didn't like it so much.
-
- >I'm not conversant in C at all but can muddle my way through Debug. I do
- >have access to a C compiler and am willing to jump in with both feet so I
- >can learn something.
-
- Though this isn't really a C-specific problem, it can /theoreticaly/ be
- done. I would expect it to be neither easy nor worth it. A better use of
- your time would be in earning enough money to buy a replacement program
- (even if it cost several thousand dollars). It's that hard, if it was
- written corrrectly (i.e. the way the hardware key manufacturers suggest).
-
- If you just have to do it, however, you need to find code that accesses
- the Parallel port (assuming you're on a DOS machine). Under DOS, you'll
- see some INP and OUTP instructions (at the assembler level). I don't know
- about the details for the other Microsoft OSs, offhand -- you'll be able
- to learn more about that if you check a MS-DOS newsgroup.
-
- Bob
-